import Vue from 'vue'
import MyRouter from '../myrouter'
// import VueRouter from 'vue-router'
import blog from '../pages/blog'
import details from '../pages/details'
import forbidden from '../pages/404'
Vue.use(MyRouter)

const routes = [
  {
    name: 'blog',
    path: '/',
    component: blog
  },
  {
    name: 'details',
    path: '/details',
    component: details
  },
  {
    name: '404',
    path: '/404',
    component: forbidden
  }
]

const router = new MyRouter({
  routes
})

export default router
